const merge = require('merge')

const common_config = {
    http_port: 3000,
    keys: ['koaSecret', 'koa2'],
    session_key: 'SESSION'
}

let config
if (process.env.NODE_ENV === 'development') {
    config = merge(common_config, require('./config.dev.js'))
} else {
    config = merge(common_config, require('./config.pro.js'))
}

module.exports = config
